sliding window k distinct char longest